# Maintainer: Keith Toh <ktprograms@gmail.com>
pkgname=py3-xcffib
pkgver=0.11.1
pkgrel=0
pkgdesc="Drop-in replacement for xpyb based on cffi"
url="https://github.com/tych0/xcffib"
arch="noarch"
license="Apache-2.0"
depends="py3-six py3-cffi libxcb"
makedepends="py3-setuptools libxcb-dev"
checkdepends="py3-pytest xvfb xeyes"
source="https://pypi.python.org/packages/source/x/xcffib/xcffib-$pkgver.tar.gz
	fix-use-of-pytest.patch"
builddir="$srcdir/xcffib-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest -v
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
09f4e19b88258446af26628c3a8e694c1f938fe3b5456e797b06174602fa0e9ef6e4eab76daccfd169d98fb7e869c910e6216d1f71fa2853e62b82c62c667669  xcffib-0.11.1.tar.gz
4ff61ba9a6ebd9ebc3ebed66d1f035b3022c2a6e56ae0a6d95c3fb5569a9ea7f6f7e99fe1a10353409cf55e6071c8e98e1e062d24184a8e7f8b1273b0ce98065  fix-use-of-pytest.patch
"
